Produced by Araxis Merge on 2021-07-21 10:22:13 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto_rtl/Smartwave_Porto/templates/html | head.phtml | 2021-04-23 07:45:00 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.1/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto_rtl/Smartwave_Porto/templates/html | head.phtml | 2021-06-11 00:46:44 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 292 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | 2 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | |||
| 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 4 | $_redirect_cart = $porto_helper->getConfig('checkout/cart/redirect_to_cart'); | 4 | $_redirect_cart = $porto_helper->getConfig('checkout/cart/redirect_to_cart'); | |||
| 5 | ?> | 5 | ?> | |||
| 6 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | 6 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | |||
| 7 | $d = $this->getConfig('porto_design'); | 7 | $d = $this->getConfig('porto_design'); | |||
| 8 | $charSubset = ""; | 8 | $charSubset = ""; | |||
| 9 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | 9 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | |||
| 10 | $charSubset .= ',latin-ext'; | 10 | $charSubset .= ',latin-ext'; | |||
| 11 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | 11 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | |||
| 12 | $charSubset .= ','.$d['font']['char_subset']; | 12 | $charSubset .= ','.$d['font']['char_subset']; | |||
| 13 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | 13 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | |||
| 14 | ?> | 14 | ?> | |||
| 15 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | 15 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | |||
| 16 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | 16 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | |||
| 17 | <?php else: ?> | 17 | <?php else: ?> | |||
| 18 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | 18 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | |||
| 19 | <?php endif;?> | 19 | <?php endif;?> | |||
| 20 | <link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet"> | 20 | <link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet"> | |||
| 21 | <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800" rel="stylesheet"> | 21 | <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800" rel="stylesheet"> | |||
| 22 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | 22 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | |||
| 23 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.min.css'; ?>"> | 23 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.min.css'; ?>"> | |||
| 24 | <?php else: ?> | 24 | <?php else: ?> | |||
| 25 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.optimized.min.css'; ?>"> | 25 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.rtl.optimized.min.css'; ?>"> | |||
| 26 | <?php endif; ?> | 26 | <?php endif; ?> | |||
| 27 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | 27 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | |||
| 28 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | 28 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | |||
| 29 | <?php else: ?> | 29 | <?php else: ?> | |||
| 30 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | 30 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | |||
| 31 | <?php endif; ?> | 31 | <?php endif; ?> | |||
| 32 | <?php | 32 | <?php | |||
| 33 | $header_type = $this->getConfig('porto_settings/header/header_type'); | 33 | $header_type = $this->getConfig('porto_settings/header/header_type'); | |||
| 34 | ?> | 34 | ?> | |||
| 35 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.rtl.css'; ?>"> | 35 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.rtl.css'; ?>"> | |||
| 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.rtl.css'; ?>"> | 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.rtl.css'; ?>"> | |||
| 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | |||
| 38 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | 38 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | |||
| 39 | <script type="text/javascript"> | 39 | <script type="text/javascript"> | |||
| 40 | var redirect_cart = false; | 40 | var redirect_cart = false; | |||
| 41 | <?php if($_redirect_cart):?> | 41 | <?php if($_redirect_cart):?> | |||
| 42 | redirect_cart = true; | 42 | redirect_cart = true; | |||
| 43 | <?php endif;?> | 43 | <?php endif;?> | |||
| 44 | var porto_config = { | 44 | var porto_config = { | |||
| 45 | paths: { | 45 | paths: { | |||
| 46 | 'parallax': 'js/jquery.parallax.min', | 46 | 'parallax': 'js/jquery.parallax.min', | |||
| 47 | 'owlcarousel': 'owl.carousel/owl.carousel', | 47 | 'owlcarousel': 'owl.carousel/owl.carousel', | |||
| 48 | 'floatelement': 'js/jquery.floatelement' | 48 | 'floatelement': 'js/jquery.floatelement' | |||
| 49 | }, | 49 | }, | |||
| 50 | shim: { | 50 | shim: { | |||
| 51 | 'owlcarousel': { | 51 | 'owlcarousel': { | |||
| 52 | deps: ['jquery'] | 52 | deps: ['jquery'] | |||
| 53 | }, | 53 | }, | |||
| 54 | 'owlcarousel_thumbs': { | 54 | 'owlcarousel_thumbs': { | |||
| 55 | deps: ['jquery','owlcarousel'] | 55 | deps: ['jquery','owlcarousel'] | |||
| 56 | }, | 56 | }, | |||
| 57 | 'floatelement': { | 57 | 'floatelement': { | |||
| 58 | deps: ['jquery'] | 58 | deps: ['jquery'] | |||
| 59 | } | 59 | } | |||
| 60 | } | 60 | } | |||
| 61 | }; | 61 | }; | |||
| 62 | 62 | |||||
| 63 | require.config(porto_config); | 63 | require.config(porto_config); | |||
| 64 | </script> | 64 | </script> | |||
| 65 | <script type="text/javascript"> | 65 | <script type="text/javascript"> | |||
| 66 | require([ | 66 | require([ | |||
| 67 | 'jquery' | 67 | 'jquery' | |||
| 68 | ], function ($) { | 68 | ], function ($) { | |||
| 69 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | 69 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | |||
| 70 | var scrolled = false; | 70 | var scrolled = false; | |||
| 71 | $(window).scroll(function(){ | 71 | $(window).scroll(function(){ | |||
| 72 | if($(window).width()>=992){ | 72 | if($(window).width()>=992){ | |||
| 73 | if(140<$(window).scrollTop() && !scrolled){ | 73 | if(140<$(window).scrollTop() && !scrolled){ | |||
| 74 | $('.page-header').addClass("sticky-header"); | 74 | $('.page-header').addClass("sticky-header"); | |||
| 75 | scrolled = true; | 75 | scrolled = true; | |||
| 76 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | 76 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | |||
| 77 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | 77 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | |||
| 78 | var minicart = $('.page-header .minicart-wrapper').detach(); | 78 | var minicart = $('.page-header .minicart-wrapper').detach(); | |||
| 79 | $('.page-header .navigation').append(minicart); | 79 | $('.page-header .navigation').append(minicart); | |||
| 80 | 80 | |||||
| 81 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 81 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 82 | var logo_image = $('<div>').append($('.page-header .header .logo').clone()).html(); | 82 | var logo_image = $('<div>').append($('.page-header .header .logo').clone()).html(); | |||
| 83 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | 83 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | |||
| 84 | <?php endif; ?> | 84 | <?php endif; ?> | |||
| 85 | } | 85 | } | |||
| 86 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 86 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 87 | <?php | 87 | <?php | |||
| 88 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | 88 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | |||
| 89 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | 89 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | |||
| 90 | $path = $folderName . '/' . $logo_src; | 90 | $path = $folderName . '/' . $logo_src; | |||
| 91 | $imageUrl = $porto_helper->getBaseUrl() . $path; | 91 | $imageUrl = $porto_helper->getBaseUrl() . $path; | |||
| 92 | ?> | 92 | ?> | |||
| 93 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | 93 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | |||
| 94 | <?php | 94 | <?php | |||
| 95 | } | 95 | } | |||
| 96 | ?> | 96 | ?> | |||
| 97 | <?php endif; ?> | 97 | <?php endif; ?> | |||
| 98 | } | 98 | } | |||
| 99 | if(140>=$(window).scrollTop() && scrolled){ | 99 | if(140>=$(window).scrollTop() && scrolled){ | |||
| 100 | $('.page-header').removeClass("sticky-header"); | 100 | $('.page-header').removeClass("sticky-header"); | |||
| 101 | scrolled = false; | 101 | scrolled = false; | |||
| 102 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | 102 | if($(".page-header").hasClass("type1") || $(".page-header").hasClass("type2") || $(".page-header").hasClass("type6")) { | |||
| 103 | var minicart; | 103 | var minicart; | |||
| 104 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | 104 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||
| 105 | $('.minicart-place').after(minicart); | 105 | $('.minicart-place').after(minicart); | |||
| 106 | $('.minicart-place').remove(); | 106 | $('.minicart-place').remove(); | |||
| 107 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | 107 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||
| 108 | 108 | |||||
| 109 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 109 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 110 | $('.page-header .navigation > .sticky-logo').remove(); | 110 | $('.page-header .navigation > .sticky-logo').remove(); | |||
| 111 | <?php endif; ?> | 111 | <?php endif; ?> | |||
| 112 | } | 112 | } | |||
| 113 | } | 113 | } | |||
| 114 | } | 114 | } | |||
| 115 | if($('body').hasClass('mobile-sticky')) { | 115 | if($('body').hasClass('mobile-sticky')) { | |||
| 116 | if($(window).width()<=991){ | 116 | if($(window).width()<=991){ | |||
| 117 | if(130<$(window).scrollTop() && !scrolled){ | 117 | if(130<$(window).scrollTop() && !scrolled){ | |||
| 118 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | 118 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | |||
| 119 | $('.page-header').addClass("sticky-header"); | 119 | $('.page-header').addClass("sticky-header"); | |||
| 120 | scrolled = true; | 120 | scrolled = true; | |||
| 121 | } | 121 | } | |||
| 122 | if(130>=$(window).scrollTop() && scrolled){ | 122 | if(130>=$(window).scrollTop() && scrolled){ | |||
| 123 | $('.page-header.sticky-header').css("height",'auto'); | 123 | $('.page-header.sticky-header').css("height",'auto'); | |||
| 124 | $('.page-header').removeClass("sticky-header"); | 124 | $('.page-header').removeClass("sticky-header"); | |||
| 125 | scrolled = false; | 125 | scrolled = false; | |||
| 126 | } | 126 | } | |||
| 127 | } | 127 | } | |||
| 128 | } | 128 | } | |||
| 129 | $(window).resize(function(){ | 129 | $(window).resize(function(){ | |||
| 130 | var b_w = $(window).width(); | 130 | var b_w = $(window).width(); | |||
| 131 | if(b_w <= 991){ | 131 | if(b_w <= 991){ | |||
| 132 | if($('.page-header .navigation .minicart-wrapper').length > 0) { | 132 | if($('.page-header .navigation .minicart-wrapper').length > 0) { | |||
| 133 | var minicart; | 133 | var minicart; | |||
| 134 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | 134 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||
| 135 | $('.minicart-place').after(minicart); | 135 | $('.minicart-place').after(minicart); | |||
| 136 | $('.minicart-place').remove(); | 136 | $('.minicart-place').remove(); | |||
| 137 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | 137 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||
| 138 | } | 138 | } | |||
| 139 | } | 139 | } | |||
| 140 | }); | 140 | }); | |||
| 141 | }); | 141 | }); | |||
| 142 | <?php endif; ?> | 142 | <?php endif; ?> | |||
| 143 | }); | 143 | }); | |||
| 144 | </script> | 144 | </script> | |||
| 145 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | 145 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | |||
| 146 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | 146 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | |||
| 147 | <?php endif; ?> | 147 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.